<div class="smart-pop">
    <div id="add_form" class="layui-form">
        <div class="layui-input-block" style="display: none">
            <input type="hidden" id="resId" name="resId" value="<%=resId%>">
        </div>
        <div class="layui-input-block" style="display: none">
            <input type="hidden" name="parentId" value="<%=parentId%>">
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 资源名称</label>
            <div class="layui-input-block">
                <input type="text" name="resName" maxlength="50" lay-verify="required" placeholder="请输入资源名称"
                       class="layui-input" value="<%=resName%>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 资源类型</label>
            <div class="layui-input-block">
                <select id="resTypeList" name="resType" lay-verify="required">
                    <option value="">请选择资源类型</option>
                    <option value="1" <%=resType=="1"?"selected":""%>>菜单</option>
                    <option value="2" <%=resType=="2"?"selected":""%>>功能</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 资源编码</label>
            <div class="layui-input-block">
                <input type="text" name="resCode" maxlength="30" lay-verify="required" placeholder="请输入资源编码"
                       class="layui-input" value="<%=resCode%>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 资源排序</label>
            <div class="layui-input-block">
                <input type="text" name="resOrder"  maxlength="11"  lay-verify="required|number"
                       placeholder="请输入资源排序" class="layui-input" value="<%=resOrder%>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 资源状态</label>
            <div class="layui-input-block">
                <select id="resStateList" name="resState" lay-verify="required">
                    <option value="">请选择资源状态</option>
                    <option value="0" <%=resState=="0"?"selected":""%> >禁用</option>
                    <option value="1" <%=resState=="1"?"selected":""%> >启用</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">url链接</label>
            <div class="layui-input-block">
                <input type="text" name="resUrl" maxlength="200" placeholder="请输入url链接" class="layui-input"
                       value="<%=resUrl%>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单图标</label>
            <div class="layui-input-block">
                <input type="text" name="resIcon" maxlength="30" placeholder="请输入菜单图标" class="layui-input"
                       value="<%=resIcon%>">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" maxlength="100" placeholder="请输入备注"
                          class="layui-textarea"><%=remark%></textarea>
            </div>
        </div>
    </div>
</div>
<script>
</script>